@import '../style/var';

.van-circle {
  position: relative;
  display: inline-block;
  text-align: center;

  svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  &__layer {
    // should not use transform-origin: center
    // that will cause incorrect style in android devices
    transform-origin: 530px 530px;
    fill: none;
    stroke-linecap: round;
  }

  &__text {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    color: @circle-text-color;
    transform: translateY(-50%);
  }
}
